GUI
Create a GUI file
To create a GUI file you create a file with an extension of .gui in the customGuis.
Attributes
name
The name attribute defines the gui's name. That name is used for the openGui function.
This attribute must be set.
id
The name attribute defines the gui's id. The id is used for opening guis on a multiplayer server.
This attribute must be set if used on a server.
guifile
The name of the gui texture file. This has to be located in the minecraft.jar or in the custom stuff zip.
type
The type of the gui. Valid types are crafting3x3, crafting4x4, crafting5x5, crafting6x6, crafting7x7 and furnace
usedrecipes
The usedrecipes attribute defines what recipes the crafting table uses. The default value is vanilla which means that it can use all recipes that the vanilla crafting table can use. If you set it for example to "vanilla,mycrafting" the crafting table can use the vanilla recipes and all recipes that were added with "mycrafting" at third parameter on the recipes.addRecipe() function.
This attribute is not used for a furnace! Instead use the usedrecipes attribute on the container file.
stringtext[1-16]
This atrribute defines the text that is drawn on the gui.
stringx[1-16]
This attribute defines the x coordinate of the string.
stringy[1-16]
This attribute defines the y coordinate of the string.
stringcolor[1-16]
This attribute defines the color of the string. 0xff0000 is red, 0x00ff00 is green and 0x404040 is the default.
width
The width defines the width that as shown in game.
height
The height defines the height that as shown in game.
craftingx
The x coordinate of the top-left crafting slot.
craftingy
The y coordinate of the top-left crafting slot.
The x coordinate of the furnace input slot.
The y coordinate of the furnace input slot.
fuelx
The x coordinate of the furnace fuel slot.
fuely
The y coordinate of the furnace fuel slot.
upperinvx
The x coordinate of the top-left inventory slot of the upper inventory.
upperinvy
The y coordinate of the top-left inventory slot of the upper inventory.
lowerinvx
The x coordinate of the top-left inventory slot of the lower inventory.
lowerinvy
The y coordinate of the top-left inventory slot of the lower inventory.
cookonguix
The x coordinate where the cook "animation" should be drawn.
cookonguiy
The y coordinate where the cook "animation" should be drawn.
cookontexturex
The x coordinate where the cook "animation" is located.
cookontexturey
The y coordinate where the cook "animation" is located.
cookwidth
The width of the cook "animation".
cookheight
The height of the cook "animation".
burnonguix
The x coordinate where the burn "animation" should be drawn.
burnonguiy
The y coordinate where the burn "animation" should be drawn.
burnontexturex
The x coordinate where the burn "animation" is located.
burnontexturey
The y coordinate where the burn "animation" is located.
burnwidth
The width of the burn "animation". This isn't in the image, but it should be clear what it is.
burnheight
The height of the burn "animation". This isn't in the image, but it should be clear what it is.